package cn.lopr.im.android.mvp.contact;

import cn.lopr.im.android.bean.CallbackResult;
import cn.lopr.im.android.bean.User;
import cn.lopr.im.android.common.OnCallBackListener;
import cn.lopr.im.android.common.ViewBase;
import cn.lopr.im.android.utils.cos.CosProperties;

/**
 * @author shuangyang7
 * @date 2021/5/20 20:04
 */
public interface IRegisterContact {

    interface IRegisterPresenter {
        void getCode();

        void reg();

    }

    interface IRegisterView extends ViewBase {

        void regSuccess(User result);

        void regFailure(String message);

        void showMessage(String message);

        String getPhone();

        String getPassword();

        String getName();
    }

    interface IRegisterModel {
        void getCode(String phone, OnCallBackListener<CallbackResult<User>, String> onCallBackListener);

        void reg(String phone, String password, String name, OnCallBackListener<CallbackResult<User>, String> onCallBackListener);

        void regBefore(String phone, String sex, String portrait, String introduction, OnCallBackListener<CallbackResult<User>, String> onCallBackListener);

        void getCosTempSecret(OnCallBackListener<CosProperties, String> onCallBackListener);
    }
}
